 <script language="javascript">
	function goback(){
		document.forms[0].action='<?=site_url("job_management/goto_companies_view")?>';
		document.forms[0].submit();
	}
	function addnewcompany(){
		document.forms[0].action='<?=site_url("job_management/save_new_company")?>';
		document.forms[0].submit();
	}
</script>

	<h3 class="capture">Job Management</h3>
    <div id="wrap">
    
    <div id="tdd_selected">
    	<div class="dd_selected">Add New Company</div>
        <div class="dd_view">
        <form action="" method="post" enctype="multipart/form-data">
   			<table width="420" border="0" align="center" cellpadding="0" cellspacing="0" id="addUser">
              <tr>
                <td width="100">&nbsp;</td>
                <td width="233">&nbsp;</td>
                <td width="87">&nbsp;</td>
              </tr>
              <tr>
                <td>Name:</td>
                <td><div class="bordrTextbox"><input type="text" id="txtname" name="txtname" maxlength="100" class="textbox" value="<?=$txtname;?>"></div></td>
                <td><font color="#FF0000">*</font></td>
              </tr>
              <tr>
                <td>Description:</td>
                <td><div class="bordrTextbox"><textarea id="txtdesc" name="txtdesc" class="textbox"><? echo $txtdesc; ?></textarea></div></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>Address:</td>
                <td><div class="bordrTextbox"><textarea id="txtaddress" name="txtaddress" class="textbox"><? echo $txtaddress; ?></textarea></div></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>Phone:</td>
                <td><div class="bordrTextbox"><input type="text" id="txtphone" name="txtphone" maxlength="50" value="<?=$txtphone;?>" class="textbox"></div></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>Fax:</td>
                <td><div class="bordrTextbox"><input type="text" id="txtfax" name="txtfax" maxlength="30" value="<?=$txtfax;?>" class="textbox"></div></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>Email:</td>
                <td><div class="bordrTextbox"><input type="text" id="txtemail" name="txtemail" maxlength="100" value="<?=$txtemail;?>" class="textbox"></div></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>Contact Name:</td>
                <td><div class="bordrTextbox"><input type="text" id="txtcontact" name="txtcontact" maxlength="50" value="<?=$txtcontact;?>" class="textbox"></div></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>Website:</td>
                <td><div class="bordrTextbox"><input type="text" id="txtwebsite" name="txtwebsite" maxlength="100" value="<?=$txtwebsite;?>" class="textbox"></div></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>Logo:</td>
                <td><div class="bordrTextbox"><input type="file" id="imagefile" name="imagefile"></div></td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td>
                <font color="#FF0000"><?php echo $error_message;?></font><br><br>
                <input type="button" name="btnback" value="Back" class="bottom" onclick="goback()" />
           		<input type="button" name="btnsave" value="Save" class="bottom" onclick="addnewcompany()" />
            	
                </td>
                <td>&nbsp;</td>
              </tr>
            </table>
        	
        </form>
		</div>
        
    </div> 

</div>

